﻿#include "knn_function.h"
#include "ui_knn_function.h"
#include<QSqlQueryModel>
#include<QDebug>
knn_function::knn_function(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::knn_function)
{
    ui->setupUi(this);
    KNN knn;
    knn.get_all_distance();
        knn.show();
        knn.get_max_fre_label();

    knn.fin.close();
    setFixedSize(192,149);
    //Myclose();
}

knn_function::~knn_function()
{
    delete ui;
}
void knn_function::Myclose()
{
    close();
}

void knn_function::on_pushButton_clicked()
{
    Myclose();
}
